/*
 * @Date         : 2022-06-08 22:43:06
 * @LastEditors  : zu1662
 * @LastEditTime : 2022-07-21 19:09:25
 * @Description  : 阿里云配置项
 * 
 * Copyright © 2022 by zu1662, All Rights Reserved. 
 */
import { registerAs } from "@nestjs/config";

export default registerAs(
  "oss",
  (): Record<string, any> => ({
    type: process.env.OSS_TYPE || '',
    region: process.env.OSS_REGION || '',
    accessId: process.env.OSS_ACCESS_ID || '',
    accessSecret: process.env.OSS_ACCESS_SECRET || '',
    bucket: process.env.OSS_BUCKET || '',
  })
);
